package design.patterns.structural.bridge;

/**
 * @author gjx
 * @version v1.0
 * @Description
 * @date 2019/4/4 15:05
 */
//桥接（Bridge）是用于把抽象化与实现化解耦，使得二者可以独立变化，它通过提供抽象化和实现化之间的桥接结构，来实现二者的解耦
public class Client {

    public static void main(String[] args) {
        Driver driver = new MysqlDriver();
        AbstractConnectManager connectManager = new SimpleConnectManager();
        connectManager.setDriver(driver);

        connectManager.getConnect();
    }
}
